package atm;

import javax.swing.*;
import java.awt.*;

/**
 * 转账界面
 */
public class TransferPanel extends JPanel {
    private ImageIcon Transfer= new ImageIcon("转账");
    private JLabel accountLabel = new JLabel("转账账号：");
    private JLabel accountLabel1 = new JLabel("转账余额：");
    private JTextField accountField = new JTextField();
    private JTextField accountField1 = new JTextField();

    private JButton loginBtn = new JButton("转账");
    private Font font = new Font("黑体",Font.BOLD,30);












    public TransferPanel(){
        this.setLayout(null);
        this.add(accountLabel);
        accountLabel.setBounds(250,200,200,50);
        accountLabel.setFont(font);
        accountLabel1.setBounds(250,260,200,50);
        accountLabel1.setFont(font);

        accountField.setBounds(400,200,250,50);
        accountField.setFont(font);
        accountField1.setBounds(400,260,250,50);
        accountField1.setFont(font);


        loginBtn.setBounds(700,350,140,50);  //转账下标     0 0 宽 高
        accountLabel.setFont(font);


        this.add(accountLabel);
        this.add(accountLabel1);
        this.add(accountField);
        this.add(accountField1);
        this.add(loginBtn);


        this.setOpaque(false);


    }
}
